﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Transfer_In.aspx.cs"
    Inherits="School.Pages.Admission.Transfer_In" MasterPageFile="~/MasterALSafa.Master" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script language="javascript">
        function CallPrint(strid) {
            var prtContent = document.getElementById(strid);
            var WinPrint = window.open('', '', 'letf=0,top=0,width=550,height=550,toolbar=0,scrollbars=0,status=0');
            WinPrint.document.write('<div dir=rtl>' + prtContent.innerHTML + '</div>');
            WinPrint.document.close();
            WinPrint.focus();
            WinPrint.print();
            WinPrint.close();

        }
    </script>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div align="center" dir="rtl" class="admintitle">
                
                طلب تحويل</div>
            <br />
            <div align="center">
                <asp:Panel ID="pnlbrows" runat="server" Visible="true">
                    <table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
                        <tr>
                            <td colspan="2" class="admintitle">
                                عرض البيانات
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <table width="90%" align="center" cellpadding="0" cellspacing="0" border="0">
                                    <tr>
                                        <td>
                                            اسم الطالب
                                        </td>
                                        <td align="right">
                                            <asp:TextBox ID="txtSearchName" runat="server" CssClass="text" 
                                                Width="150px"></asp:TextBox>
                                        </td>
                                        <td>
                                            <asp:Label ID="Label15" runat="server" CssClass="lab" Text="المجمع"></asp:Label>
                                        </td>
                                        <td align="right">
                                            <asp:DropDownList ID="ddlSearchcampus_Id" runat="server" AutoPostBack="True" 
                                                Width="200px" onselectedindexchanged="ddlSearchcampus_Id_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td rowspan="3">
                                            &nbsp;</td>
                                        <td align="right" rowspan="3">
                                            <asp:RadioButtonList ID="rblSearchType" runat="server" Visible="false">
                                                <asp:ListItem Selected="True" Text="بداية الاسم" Value="0"></asp:ListItem>
                                                <asp:ListItem Text="اي جزء من الاسم" Value="1"></asp:ListItem>
                                                <asp:ListItem Text="مطابق" Value="2"></asp:ListItem>
                                            </asp:RadioButtonList>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblCertificate_Id0" runat="server" CssClass="lab" Text="نوع الشهادة"></asp:Label>
                                        </td>
                                        <td align="right">
                                            <asp:DropDownList ID="ddlSearchCertificate_Id" runat="server" AutoPostBack="True"
                                                Width="200px" Enabled="False" 
                                                onselectedindexchanged="ddlSearchCertificate_Id_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblStage_Id0" runat="server" CssClass="lab" Text="مرحلة القيد"></asp:Label>
                                        </td>
                                        <td align="right">
                                            <asp:DropDownList ID="ddlSearchStage_Id" runat="server" AutoPostBack="True" 
                                                Width="200px" Enabled="False" 
                                                onselectedindexchanged="ddlSearchStage_Id_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblGrade_Id0" runat="server" CssClass="lab" Text="الصف"></asp:Label>
                                        </td>
                                        <td align="right">
                                            <asp:DropDownList ID="ddlSearchGrade_ID" runat="server" AutoPostBack="True" 
                                                Width="200px" Enabled="False" 
                                                onselectedindexchanged="ddlSearchGrade_ID_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td style="text-align: right">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">
                                            <asp:Button ID="btnSearch" runat="server" Text="بحث" CssClass="graybutton" OnClick="btnSearch_Click" />&nbsp;<asp:Button
                                                ID="btnAdd" runat="server" CssClass="graybutton" OnClick="btnAdd_Click" 
                                                Text="اضافة جديد" Visible="False" />
                                            &nbsp;<asp:Button ID="btnGetAll" runat="server" Text="الكل" CssClass="graybutton"
                                                OnClick="btnGetAll_Click" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: right" colspan="4">
                                            <asp:Label CssClass="lableface" ID="lblRecordNo" runat="server"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">
                                            <asp:GridView Width="100%" AllowPaging="True" AllowSorting="True" ID="griddata" runat="server"
                                                CssClass="Grid" HeaderStyle-CssClass="GridHeaderFooter" FooterStyle-CssClass="GridHeaderFooter"
                                                PagerStyle-CssClass="GridPager" AlternatingRowStyle-CssClass="GridItemAltername"
                                                AutoGenerateColumns="False" OnSelectedIndexChanged="griddata_SelectedIndexChanged"
                                                OnRowDeleting="griddata_RowDeleting" DataKeyNames="Id" OnRowDataBound="griddata_RowDataBound"
                                                OnPageIndexChanging="griddata_PageIndexChanging" PageSize="50">
                                                <AlternatingRowStyle CssClass="GridItemAltername" />
                                                <Columns>
   
                                                    <asp:BoundField DataField="CampusName" HeaderText="المجمع" />
                                                    <asp:BoundField DataField="CertificateName" HeaderText="الشهادة" />
                                                    <asp:BoundField DataField="StageName" HeaderText="المرحلة" />
                                                    <asp:BoundField DataField="GradeName" HeaderText="الصف" />
   
                                            <asp:TemplateField HeaderText="الاسم الكامل">
                                                <ItemTemplate>
                                                    <asp:Label ID="Label1" runat="server" 
                                                        Text='<%# Eval("FullName") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                                    <asp:CommandField ShowSelectButton="True" SelectText="View" Visible="false" />
                                                    <asp:TemplateField ShowHeader="False" Visible="false">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
                                                                Text="Delete"></asp:LinkButton>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField>
                                                        <ItemTemplate>
                                                            <asp:CheckBox ID="CheckBox1" runat="server" />
                                                            <asp:Label ID="lbltrid" runat="server" Text='<%# Eval("Id") %>' Visible="false"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <FooterStyle CssClass="GridHeaderFooter" />
                                                <HeaderStyle CssClass="GridHeaderFooter" />
                                                <PagerStyle CssClass="GridPager" />
                                            </asp:GridView>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">
                                            &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                        <td align="right" class="admintitle">
                                            تحويل الي :</td>
                                        <td>
                                            &nbsp;</td>
                                        <td align="right">
                                            &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label16" runat="server" CssClass="lab" Text="المجمع"></asp:Label>
                                        </td>
                                        <td align="right">
                                            <asp:DropDownList ID="ddlUpdatecampus_Id" runat="server" AutoPostBack="True" 
                                                onselectedindexchanged="ddlUpdatecampus_Id_SelectedIndexChanged" Width="200px">
                                            </asp:DropDownList>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblCertificate_Id2" runat="server" CssClass="lab" 
                                                Text="نوع الشهادة"></asp:Label>
                                        </td>
                                        <td align="right">
                                            <asp:DropDownList ID="ddlUpdateCertificate_Id" runat="server" 
                                                AutoPostBack="True" Enabled="False" 
                                                onselectedindexchanged="ddlUpdateCertificate_Id_SelectedIndexChanged" 
                                                Width="200px">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblStage_Id1" runat="server" CssClass="lab" Text="مرحلة القيد"></asp:Label>
                                        </td>
                                        <td align="right">
                                            <asp:DropDownList ID="ddlUpdateStage_Id" runat="server" AutoPostBack="True" 
                                                Enabled="False" onselectedindexchanged="ddlUpdateStage_Id_SelectedIndexChanged" 
                                                Width="200px">
                                            </asp:DropDownList>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblGrade_Id1" runat="server" CssClass="lab" Text="الصف"></asp:Label>
                                        </td>
                                        <td align="right">
                                            <asp:DropDownList ID="ddlUpdateGrade_ID" runat="server"
                                                Enabled="False" Width="200px">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                        <td align="right">
                                            &nbsp;</td>
                                        <td>
                                            &nbsp;</td>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">
                                            <asp:Label ID="lblMessage" runat="server" CssClass="error"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4" align="right" style="text-align: center">
                                            &nbsp;
                                            <asp:Button ID="btnAccept" runat="server" Text="تحويل الطالب" 
                                                CssClass="graybutton" OnClick="btnAccept_Click" />
                                            &nbsp; &nbsp;
                                            
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </div>
            <br />
            <div>
                
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
